package com.gouqi.bookdemobackend.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName book
 */
@TableName(value = "book")
@Data
public class Book implements Serializable {
    /**
     * id
     */
    @TableId
    private String id;

    /**
     * 书名
     */
    @TableField("name")
    private String name;

    /**
     * 借阅时间
     */
    @TableField("borrowTime")
    private Date borrowTime;

    /**
     * 归还时间
     */
    @TableField("returnTime")
    private Date returnTime;

    /**
     * 借阅人id
     */
    @TableField("userId")
    private String userId;

    /**
     * 借阅状态
     */
    @TableField("status")
    private Integer status;

    /**
     * 逻辑删除
     */
    @TableLogic
    @TableField("isDelete")
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}